<?php
/**
 * Head.php
 *
 * @category    Madoqua
 * @package     View
 * @subpackage  Helper
 */

/** base class */
require_once 'Madoqua/View/Helper/Abstract.php';

/**
 * Zend_View_Helper_Head
 *
 * @category    Madoqua
 * @package     View
 * @subpackage  Helper
 */
class Madoqua_View_Helper_Head extends Madoqua_View_Helper_Abstract
{

    /**
     * short method for displaying all the parts of the head
     *
     * @return string
     */
    function head()
    {
        $this->_view->headLink()->prependStylesheet($this->adminFile('css/reset.css'));
        //we reset all styles... uh ohw!
        
        $return = '<base href="' . Madoqua_Application::getConfiguration()->url;
        $return .= rtrim(Madoqua_Application::getConfiguration()->rewriting->base, '/') . '/" />';
        
        $return .= $this->_view->headTitle();
        $return .= $this->_view->headLink();
        $return .= $this->_view->headScript();
        
        
        return $return;
    }

}